Ext.define("Mypocket.view.legislator.Bio", {
    extend: "Ext.Container",
    id: "legislatorBio",
    config: {
        tpl: Ext.create("Ext.XTemplate", '<span class="legislator-pic" style="background-image: url(resources/img/ehbo_kit.png);"></span>', '<div class="legislator-name">', '<div class="title">{name}</div>', '<div class="district">{state}</div>', "</div>", '<div class="x-list-normal"><div class="x-list-header">联系方式</div>', '<div class="legislator-info">', "学校地址: {address}<br />", "邮编: {postcode}<br />", "电话: {tel}", "</div></div>", '<div class="x-list-normal"><div class="x-list-header">路线</div>', '<div class="legislator-info">{route}</div>', "</div>")
    }
});
Ext.define("Mypocket.view.legislator.Info", {
    extend: "Ext.Container",
    requires: ["Mypocket.view.legislator.Bio"],
    id: "legislatorInfo",
    config: {
        layout: "vbox",
        scrollable: "vertical",
        items: [{
            xclass: "GeoCon.view.legislator.Bio"
        }]
    }
});